home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Frameworks / Grant's CGI Framework 1.0b12 / Util / compiler_stuff.h < prev    next >
C/C++ Source or Header  |  1995-12-09  |  643b  |  36 lines

  1. #pragma once
  2. /*****
  3.  *
  4.  *    compiler_stuff.h
  5.  *
  6.  *    Stuff to deal with particular compilers' idiosyncrasies
  7.  *
  8.  *****/
  9.  
  10. /***  CONSTANTS  ***/
  11.  
  12. /* are we compiling for Symantec compilers? */
  13. #if defined(__SC__) || defined(THINK_C)
  14.     #define kCompiling_For_Symantec        1
  15. #else
  16.     #define kCompiling_For_Symantec        0
  17. #endif
  18.  
  19. /* make sure that nil works as expected for Symantec compilers */
  20. #if !defined(nil) || ( !defined(__cplusplus) && kCompiling_For_Symantec )
  21.     #ifdef nil
  22.         #undef  nil
  23.     #endif
  24.     #define nil    0
  25. #endif
  26.  
  27. /* profiler support */
  28.  
  29. #if __powerc
  30. #define kProcessorString "PPC"
  31. #else
  32. #define kProcessorString "68K"
  33. #endif
  34.  
  35. /*****  EOF  *****/
  36.